<{include file="header.htm"}>
<script src="<{$config.weburl}>/script/jquery-1.4.4.min.js" type="text/javascript"></script>
<script src="<{$config.weburl}>/script/base.js" type="text/javascript"></script>
<script src="script/login.js" type=text/javascript></script>
<script type=text/javascript>
var nousername='<{$lang.nouname}>';
var nouserpass='<{$lang.noupass}>';
var norandcode='<{$lang.nocode}>';
</script>
<header>
	<div class="nav-w">
    	<section class="nav-s"><a href="<{$config.weburl}>"><nav>首页</nav></a></section>
    	<section class="nav-c"><span>会员登录</span></section>
    	<section class="nav-e"></section>
    </div>
</header>
<link href="<{$config.weburl}>/templates/wap/css/login.css" rel="stylesheet" type="text/css" />
<section class="login">
<form id="login" name="login" action="login.php" method="post">
<table>
	<tr>
    	<td>
        <input name="user" type="text" id="user" placeholder="会员名"/>
       
        </td>
    </tr>
	<tr>
    	<td>
        <input type="password" name="password" id="password" placeholder="密码"/>
        </td>
    </tr>
	<tr>
    	<td>
        <input type="text" maxlength="4" name="randcode" id="randcode" placeholder="验证码" />
        <img onclick="get_randfunc(this);" src='<{$config.weburl}>/includes/rand_func.php'/>
        </td>
    </tr>
	<tr>
    	<td>
        <input name="action" type="hidden" value="submit" />
        <input name="forward" type="hidden" id="forward" value="<{$smarty.get.forward}>" />
        <input type="submit" value="登录" onclick="return do_login();">
        </td>
    </tr>
</table>
<{if $smarty.get.erry}>
	<script>
    $('.form-error').offset();
    function closefunc()
    {
        $('.form-error').remove();
    }
    setTimeout(closefunc,2000);
    </script>
    <div class="form-error">
        <{if $smarty.get.erry=="-1"}>
            <{$lang.noname}>
        <{elseif $smarty.get.erry=="-4"}>
            <{$lang.have_restpass}>
        <{elseif $smarty.get.erry=="-2"}>
            <{$lang.passerr}>
        <{elseif $smarty.get.erry=="-3"}>
            <{$lang.codeerr}>
        <{/if}>
    </div>
<{/if}>
</form>
</section>
<{include file="footer.htm"}>